﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;
using System.Security.Cryptography;

using X.Common;
using X.Config;

namespace E.Web.UI.Page
{
    public class AdminBasePage : System.Web.UI.Page
    {
        #region 属性

        /// <summary>
        /// 配置信息
        /// </summary>
        protected internal GeneralConfigInfo config;

        protected internal int userid;

        /// <summary>
        /// 提示文字
        /// </summary>
        protected internal string msgbox_text = "";

        /// <summary>
        /// 回退链接的内容
        /// </summary>
        protected internal string msgbox_backlink = "javascript:history.back();";

        protected internal string reffer = string.Empty;

        /// <summary>
        /// 当前页面是否被POST请求
        /// </summary>
        protected internal bool ispost;

        #endregion

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }

        protected override void OnUnload(EventArgs e)
        {
            base.OnUnload(e);
        }

        public AdminBasePage()
        {
            config = GeneralConfigs.GetConfig();
            userid = Utils.StrToInt(Utils.GetCookie("userid"), -1);
        }
        
        /// <summary>
        /// 页面处理虚方法
        /// </summary>
        protected virtual void ShowPage()
        {
            return;
        }
    }
}